home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / gfx / x11 / x3270_3_2_16.lha / amiga_src / ft_dft_ds.h < prev    next >
Text File  |  2007-03-01  |  1KB  |  39 lines

  1. /*
  2.  * Modifications Copyright 1996, 1999 by Paul Mattes.
  3.  * Copyright Octover 1995 by Dick Altenbern.
  4.  * Based in part on code Copyright 1993, 1994, 1995 by Paul Mattes.
  5.  *  Permission to use, copy, modify, and distribute this software and its
  6.  *  documentation for any purpose and without fee is hereby granted,
  7.  *  provided that the above copyright notice appear in all copies and that
  8.  *  both that copyright notice and this permission notice appear in
  9.  *  supporting documentation.
  10.  */
  11.  
  12. /* DFT-style file transfer codes. */
  13.  
  14. /* Host requests. */
  15. #define TR_OPEN_REQ        0x0012    /* open request */
  16. #define TR_CLOSE_REQ        0x4112    /* close request */
  17.  
  18. #define TR_SET_CUR_REQ        0x4511    /* set cursor request */
  19. #define TR_GET_REQ        0x4611    /* get request */
  20. #define TR_INSERT_REQ        0x4711    /* insert request */
  21.  
  22. #define TR_DATA_INSERT        0x4704    /* data to insert */
  23.  
  24. /* PC replies. */
  25. #define TR_GET_REPLY        0x4605    /* data for get */
  26. #define TR_NORMAL_REPLY        0x4705    /* insert normal reply */
  27. #define TR_ERROR_REPLY        0x08    /* error reply (low 8 bits) */
  28. #define TR_CLOSE_REPLY        0x4109    /* close acknowledgement */
  29.  
  30. /* Other headers. */
  31. #define TR_RECNUM_HDR        0x6306    /* record number header */
  32. #define TR_ERROR_HDR        0x6904    /* error header */
  33. #define TR_NOT_COMPRESSED    0xc080    /* data not compressed */
  34. #define TR_BEGIN_DATA        0x61    /* beginning of data */
  35.  
  36. /* Error codes. */
  37. #define TR_ERR_EOF        0x2200    /* get past end of file */
  38. #define TR_ERR_CMDFAIL        0x0100    /* command failed */
  39.